package com.kinghunt.misp.service.api.userx;

import com.kinghunt.misp.common.param.userx.OrganizationParam;
import com.bygoodtech.kings.common.dto.ApiResult;

/**
 * @author jiangtao
 * @date 2019-10-24 00:21.
 */
public interface OrganizationWriteService {
    /**
     * 新增机构
     *
     * @param organizationParam 新增机构信息
     * @return 新增机构ID
     */
    ApiResult<Long> addOrganization(OrganizationParam organizationParam);

    /**
     * 更新机构信息
     *
     * @param organizationParam 更新机构信息
     * @return 是否成功
     */
    ApiResult<Boolean> updateOrganizationInfo(OrganizationParam organizationParam);

    /**
     * 删除机构
     *
     * @param organizationId 机构ID
     * @return 是否成功
     */
    ApiResult<Boolean> deleteOrganization(Long organizationId);
}
